﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AdventureWorks.Infrastructure.Interface.BusinessEntities
{
    public class Order
    {
        private List<OrderItem> _lineItems = new List<OrderItem>();
        private string _customerName;
        private int _orderId;
        private OrderState _state = OrderState.New;

        public List<OrderItem> LineItems
        {
            get { return _lineItems; }
            set { _lineItems = value; }
        }

        public OrderState State
        {
            get { return _state; }
            set { _state = value; }
        }

        public string CustomerName
        {
            get { return _customerName; }
            set { _customerName = value; }
        }

        public int OrderId
        {
            get { return _orderId; }
            set { _orderId = value; }
        }
    }

    public enum OrderState
    {
        New,
        Submitted
    }
}
